<template>
	<view class="container bg-white">
		<view class="icons colorGray">
			<view class="options margin-top-40">
				<view class="ti-flex flex-column" @click="tel()">
					<tian-icons type="kefu" size="60" color="#999999"></tian-icons>
					<text class="margin-top-40">热线电话:{{customer.telephone}}</text>
				</view>
				<!-- #ifdef MP -->
				<view class="opt-item">
					<button type="default" class="chat" open-type="contact">
						<text class="yticon icon-icon--"></text>
					</button>
					<text>在线客服</text>
				</view>
				<!-- #endif -->
			</view>
			<text>{{customer.serviceTime}}</text>
		</view>
		<!-- <view class="qas">
			<view class="header">
				<text>常见问题</text>
			</view>
			<view class="content">
				<view v-for="(item,index) in dataList" :key="index" class="item b-b"
					@click="navTo('/pages/docs/docs?id='+item._id)">
					<text>{{item.title}}</text>
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				key: "serviceShopInfo",
				dataList: []
			};
		},
		computed: {
			customer() {
				return this.$store.state.app.customer;
			}
		},
		methods: {
			tel() {
				if (this.customer.telephone != "") {
					uni.makePhoneCall({
						phoneNumber: this.customer.telephone
					})
				}
			},
		}
	}
</script>

<style lang="scss">
	page {
		background: #FFFFFF;
	}

	.container {}

	.icons {
		text-align: center;
		margin: 0 30rpx 30rpx;
	}

	.options {
		display: flex;
		align-items: center;
		justify-content: center;

		.opt-item {
			margin: 0 40rpx 10rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
		}

		.chat {
			background: none;
			border: none;

			&:after {
				border: none;
			}
		}
	}

	.header {
		padding: 20rpx;
	}

	.item {
		position: relative;
		padding: 20rpx 30rpx;

		&:after {
			left: 20rpx;
		}
	}
</style>
